<include file="Public/header" />
<include file="Public/menu" />

<!-- 内容页 -->
<div class="content-wrapper">
    <!-- 面包屑 -->
    <section class="content-header">
        <h1>
            店铺订单
            <small>订单详细</small>
        </h1>

    </section>

    <!-- 内容 -->

    <section class="content"><div class="row"><div class="col-md-12"><div class="nav-tabs-custom">
        <ul class="nav nav-tabs">
            <li><a href="{:U('orders/orderDetail',array('id'=>$order_id))}" >订单详情</a></li>
            <li><a href="{:U('orders/orderMark',array('id'=>$order_id))}" >订单备注</a></li>
            <li class="active" ><a href="#">订单日志</a></li>
            </ul>
        <div class="tab-content">

            <div class="tab-pane " style="display: block">


                <table class="table table-bordered" style="text-align: center">
                    <tbody><tr>
                        <th style="width: 60px;text-align: center">序号</th>
                        <th style="text-align: center">时间</th>
                        <th style="text-align: center">操作人</th>
                        <th style="text-align: center">行为</th>
                        <th style="text-align: center">结果</th>
                        <th style="text-align: center">备注</th>
                    </tr>




                    <volist name="logList" id="log">
                    <tr>
                        <td>{$log.log_id}</td>
                        <td>{$log.time}</td>
                        <td>{$log.op_name}</td>
                        <td>{$log.behavior}</td>
                        <td>{$log.result}</td>
                        <td> {$log.log_text}</td>
                    </tr>
                    </volist>
                    </tbody></table>




            </div>



        </div>
    </div></div></div>

    </section>




</div>
<!-- 底部 -->
<include file="Public/common_footer" />

<script data-exec-on-popstate>

    $(function () {

        $('.grid-select-all').change(function() {
            if (this.checked) {
                $('.grid-item').prop("checked", true);
            } else {
                $('.grid-item').prop("checked", false);
            }
        });

        $('.batch-delete').on('click', function() {
            var selected = [];
            $('.grid-item:checked').each(function(){
                selected.push($(this).data('id'));
            });

            if (selected.length == 0) {
                return;
            }

            if(confirm("Are you sure to delete this item ?")) {
                $.post('/admin/auth/roles/' + selected.join(), {_method:'delete','_token':'ALpaP7hXZ6s2dnAdE02Z6mUSHPt8RkYbcDRp6rpw'}, function(data){
                    $.pjax.reload('#pjax-container');
                    noty({
                        text: "<strong>Succeeded!</strong>",
                        type:'success',
                        timeout: 1000
                    });
                });
            }
        });
    });
</script>